package com.ys.erp.stage_config_service.bean.condition;

import com.ys.erp.framework.annotation.valid.MoneyValid;
import com.ys.erp.framework.annotation.valid.Xss;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author lwj
 * @date 2025/5/28
 */
@Data
public class ConfigCondition {

    @Data
    @Schema(description = "设置购买须知")
    public static class SetBuyInformationCon {

        @NotBlank
        @Schema(description = "购买须知")
        private String buyInformation;

    }

    @Data
    @Schema(description = "幺币幺豆抵扣比列请求对象")
    public static class SetYsPulseCon {

        @NotBlank
        @Schema(description = "幺币")
        @MoneyValid
        private String ysMoney;

        @NotBlank
        @Schema(description = "幺豆")
        @MoneyValid
        private String ysPulse;
    }

}
